package com.wss.day03.test2;

/**
 * @author wangshaoshuai
 * @desc TODO
 * @date 2025/4/22
 */
public class OrdinaryEmployee extends Employee {
    public OrdinaryEmployee(String name, String id, double pay) {
        super(name, id, pay);
    }

    @Override
    public void addSalary() {
        double newPay = getPay() * 1.05;
        setPay(newPay);
        System.out.println(getName() + "(普通员工)涨薪完成，新工资：" + newPay);
    }

    @Override
    public void show() {
        super.show();
        System.out.println("职位：普通员工");
    }
}
